import request from "./request";


export const requestLogin = (data)=>{
  return request('/user/login','post',data)
}
export const requestGoodList = (data) => {
  // console.log(data);
  return request("/good/list", "get", data);
};

export const requestUserInfo = (data)=>{
  return request('/user/info','post',data)
}
export const requestCate = (data) => {
  return request("/good/cate", "get", data);
};

export const requestShopDetail = (data)=>{
  console.log(data);
  return request('/good/detail','get',data)
}
export default {
  requestGoodList,
  requestCate,
  requestLogin,
  requestUserInfo,
  requestShopDetail
};
